<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #yeye {
          width: 400px;
          height: 400px;
          background-color: pink;
        }
        #father {
          width: 200px;
          height: 200px;
          background-color: red;
        }
        #son {
          width: 100px;
          height: 100px;
          background-color: #fa5;
        }
      </style>
</head>
<body>
    <div id="yeye">
        <div id="father">
          <div id="son"></div>
        </div>
    </div>
    <script>
        document.querySelector('#yeye').addEventListener('click', function(){
            console.log('YEYE')
        },true)
        document.querySelector('#father').addEventListener('click',function(){
            console.log('father')
        },true)
        document.querySelector('#son').addEventListener('click',function(){
            console.log('son')
        },true)
    </script>
</body>
</html>